package com.baox.agridata.synchronous.service;

import com.baox.agridata.synchronous.entity.TXDRFarmEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TXDRFarmService {


    /**
     * 通过主键查询养殖场户是否存在
     *
     * @param mid
     * @return
     */
    TXDRFarmEntity selectTXDRFarmById(String mid);


    /**
     * 插入养殖场数据
     *
     * @param txdrFarmEntity
     * @return
     */
    Integer insertIntoTXDRFarm(TXDRFarmEntity txdrFarmEntity);



    /**
     * 更新养殖户信息
     *
     * @param txdrFarmEntity
     * @return
     */
    Integer updateTXDRCarById(TXDRFarmEntity txdrFarmEntity);


    /**
     * 同步成都的养殖场户到四川系统
     *
     * @return
     */
    List<TXDRFarmEntity> selectTXDRFarmDataToChengDu(String startTime);


    List<TXDRFarmEntity> selectSichuanData();


    Integer deleteFarmList(List<TXDRFarmEntity> list);

}
